package com.kkyy.findmusic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kkyy.findmusic.entity.SongsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SongsDao extends BaseMapper<SongsEntity> {
    List<SongsEntity> selectByStatus();

    void updateSongStatus(Integer id);

    void updateDownSongType(Integer id);

    void updateUpSongType(Integer id);

    List<SongsEntity> selectByStatus2();

    void addSongInfo(
            @Param("songname") String songname,
            @Param("songart") String songart,
            @Param("picurl") String picurl,
            @Param("location") Integer location);
}